package com.netease.pris.activity.a;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.netease.framework.ActivityEx;
import com.netease.pris.activity.view.PrisArticleView;
import com.netease.pris.atom.b;
import com.netease.pris.atom.u;
import com.netease.pris.protocol.d;
import java.util.LinkedList;

public class s extends BaseAdapter
{
  private int a;
  private b b;
  private final String c;
  private final String d;
  private final String e;
  private boolean f;
  private d g = null;
  private LayoutInflater h;

  public s(Context paramContext, int paramInt, b paramb, String paramString1, d paramd, String paramString2, boolean paramBoolean)
  {
    this.g = paramd;
    this.a = paramInt;
    this.b = paramb;
    this.c = paramString1;
    this.d = paramString2;
    this.f = paramBoolean;
    this.h = ((LayoutInflater)paramContext.getSystemService("layout_inflater"));
    this.e = ((ActivityEx)paramContext).p();
  }

  public int getCount()
  {
    if ((this.g == null) || (this.g.h == null));
    for (int i = 0; ; i = this.g.h.size())
      return i;
  }

  public Object getItem(int paramInt)
  {
    return null;
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    u localu = (u)this.g.h.get(paramInt);
    int i;
    if (localu == null)
      i = 256;
    while (true)
    {
      if ((paramView != null) && ((paramView instanceof PrisArticleView)));
      for (PrisArticleView localPrisArticleView = (PrisArticleView)paramView; ; localPrisArticleView = (PrisArticleView)this.h.inflate(2130903074, paramViewGroup, false))
      {
        localPrisArticleView.b(this.a);
        localPrisArticleView.c(i);
        localPrisArticleView.a(this.b);
        localPrisArticleView.a(paramInt);
        localPrisArticleView.a(localu);
        localPrisArticleView.a(this.g);
        localPrisArticleView.c(this.c);
        localPrisArticleView.d(this.d);
        localPrisArticleView.a(true);
        localPrisArticleView.e(this.e);
        localPrisArticleView.b(this.f);
        if (this.f)
          this.f = false;
        return localPrisArticleView;
        if (!localu.O())
          break label184;
        i = localu.av();
        break;
      }
      label184: i = 256;
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.a.s
 * JD-Core Version:    0.6.0
 */